<?php $this->JQuery()->javascriptCaptureStart()?>
$j('#sign_up').click(function(e) {   
        $j.post(
            '<?php echo $this->geturl('valid-email','user')?>',
            $j('#form_newsletter').serialize(),
            function (data) {
                if (data.res == 'ok') {
                    $j('#form_newsletter').submit();
                }
                else {
                    $j('#errors_email').show();
                }
            }
        );
        return false;
});
<?php $this->JQuery()->javascriptCaptureEnd()?>

<?php $this->headLink()->appendStylesheet(Ac_Util::getImageBaseUrl('/css/custom_mkt.v-'.AC_VERSION.'.css'))?>
<?php $this->placeholder('container-class')->set('mkt newsletter')?>
<article class="article">
    <section class="breadcrumb">
        <dl class="path">
            <dd><a href="#">主頁</a> » <a href="#">服務中心</a> » <a href="#">与猫找网互动 </a></dd>
        </dl>
    </section>
    <section class="main_section">    
        <h3>服務中心</h3>
        <section class="newsletter box main_info">
            <h1><span>与猫找网互动 </span></h1>
            <p>紧跟猫找网最新商品信息、推广优惠及最新动态！</p>
            <p>猫找网电子信息带给你：</p>
            <ul>
                <li>所有分类的最热门商品</li>
                <li>无限优惠政策，赢取最萌奖品</li>
                <li>紧跟猫找网最新服务及动态</li>
            </ul>
            <section class="form">
                <form method="POST" name="form_newsletter" id="form_newsletter" action="/user/newsletter-subscribe">
                    <fieldset>
                        <div class="text email">
                            <label>你的邮箱</label>
                            <input type="text" name="email" id="email" value="<?php if (!empty($this->loggedin_user)) { echo $this->loggedin_user->email;}?>">
                        <ul>
                            <li class="errors" id="errors_email" style="display:none;"><?php echo $this->t('Valid email required')?></li>
                        </ul>

                        </div>
                        <div class="button em">
                             <button id="sign_up">订阅</button>
                        </div>
                    </fieldset>
                </form>
            </section>
            <p>与朋友分享猫找网的最新动态：</p>    
            <ul>
                <li><a href="#">新浪微博</a></li>
                <li><a href="#">人人主页</a></li>
                <li><a href="#">腾讯微博</a></li>
                <li><a href="#">QQ空间</a></li>
                <li><a href="#">网易微博</a></li>
                <li><a href="#">豆瓣</a></li>
            </ul>
        </section>
        <?php echo $this->partial('index/mkt-sidebar.phtml', array('select'=> 'newsletter'));?> 
    </section>
    <aside class="aside"></aside>
</article>
